package com.qfedu.controller;

import com.qfedu.pojo.resp.BaseResp;
import com.qfedu.service.StoreService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName StoreController
 * @Description TODO
 * @Author young
 * @Date 2022-09-29 21:23
 * @Version 1.0
 **/
@RestController
@RequestMapping("/store")
@Api(tags = "门店管理")
public class StoreController {
    @Autowired
    StoreService storeService;

    @ApiOperation(value = "查询所有门店信息")
    @GetMapping("/findAll")
    public BaseResp findAll(){
       return storeService.findAll();
    }
}
